package com.zhang.mapper;

import com.zhang.entity.dto.AuthDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 张
 * Date: 2024-10-30
 * Time: 16:47
 * Description:
 */
@Mapper
public interface AuthorityMapper {
    public List<AuthDto> getAuthorityByUserId(Integer userId);
    @Insert("insert into visions_sort.authority_record(user_id,modul_id) VALUE (#{userId},#{authorityId})")
    public void addAuthority(Integer userId, Integer authorityId);
}
